<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>CZPlayer: CBasicPlayer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">CZPlayer
   &#160;<span id="projectnumber">3.0.0</span>
   </div>
   <div id="projectbrief">CZPlayer应用程序</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>宏定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_c_basic_player-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CBasicPlayer类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_basic_player_8h_source.html">BasicPlayer.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4b063ea6136b9373fd132252af403ba5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a4b063ea6136b9373fd132252af403ba5">CBasicPlayer</a> (TCHAR *fileName)</td></tr>
<tr class="separator:a4b063ea6136b9373fd132252af403ba5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2df79ab9ea5a52ae878b5cf8833d8e4f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a2df79ab9ea5a52ae878b5cf8833d8e4f">~CBasicPlayer</a> (void)</td></tr>
<tr class="separator:a2df79ab9ea5a52ae878b5cf8833d8e4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80ed1111ee4f56ac4f77a4bc70a33cc1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_file_input.html">CFileInput</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a80ed1111ee4f56ac4f77a4bc70a33cc1">GetInput</a> ()</td></tr>
<tr class="separator:a80ed1111ee4f56ac4f77a4bc70a33cc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e414657ca9072f8b1843032711c8c6c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a1e414657ca9072f8b1843032711c8c6c">isVaild</a> ()</td></tr>
<tr class="separator:a1e414657ca9072f8b1843032711c8c6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a923965049cd93edc1f6a1e8949366046"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a923965049cd93edc1f6a1e8949366046">Start</a> ()</td></tr>
<tr class="separator:a923965049cd93edc1f6a1e8949366046"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18edbe2cd19fcdf54f6a8693e5ca9933"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a18edbe2cd19fcdf54f6a8693e5ca9933">Stop</a> ()</td></tr>
<tr class="separator:a18edbe2cd19fcdf54f6a8693e5ca9933"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a756ac686fdd160177834a607acfdbdd4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a756ac686fdd160177834a607acfdbdd4">Pause</a> ()</td></tr>
<tr class="separator:a756ac686fdd160177834a607acfdbdd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11a26def96e29eeca6383f98bbc4e4b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a11a26def96e29eeca6383f98bbc4e4b0">Play</a> ()</td></tr>
<tr class="separator:a11a26def96e29eeca6383f98bbc4e4b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cec3701ade8bab7f1ce20d2082a7207"><td class="memItemLeft" align="right" valign="top">jlong&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a9cec3701ade8bab7f1ce20d2082a7207">GetLongFramePosition</a> ()</td></tr>
<tr class="separator:a9cec3701ade8bab7f1ce20d2082a7207"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbda99b45acd28245ea5013b240e0aa2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#afbda99b45acd28245ea5013b240e0aa2">handleFinished</a> ()</td></tr>
<tr class="separator:afbda99b45acd28245ea5013b240e0aa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a9eb7fecf4500b14f50ec4f5f11f3e7ae"><td class="memItemLeft" align="right" valign="top">c_signals&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a9eb7fecf4500b14f50ec4f5f11f3e7ae">__pad0__</a>: <a class="el" href="class_signal1.html">Signal1</a>&lt;vector&lt;float&gt;&gt; sigSpectrumChanged</td></tr>
<tr class="separator:a9eb7fecf4500b14f50ec4f5f11f3e7ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08a5907c92c6e20007494ac965e4fccb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_signal.html">Signal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_player.html#a08a5907c92c6e20007494ac965e4fccb">sigFinished</a></td></tr>
<tr class="separator:a08a5907c92c6e20007494ac965e4fccb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff776aedc3bf72437cf4e22bfef78647"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aff776aedc3bf72437cf4e22bfef78647"></a>
private&#160;</td><td class="memItemRight" valign="bottom"><b>c_slots</b>: void handleSpectrumChanged(vector&lt;float&gt; vecFrequency)</td></tr>
<tr class="separator:aff776aedc3bf72437cf4e22bfef78647"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a78c84b71ae5204c3e31972487b0e78ff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a78c84b71ae5204c3e31972487b0e78ff"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>CPlayThread</b></td></tr>
<tr class="separator:a78c84b71ae5204c3e31972487b0e78ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b9f00b808a82f586b3d2400d500a32f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b9f00b808a82f586b3d2400d500a32f"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>CSpectrumAnalyser</b></td></tr>
<tr class="separator:a7b9f00b808a82f586b3d2400d500a32f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>播放引擎类 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a4b063ea6136b9373fd132252af403ba5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CBasicPlayer::CBasicPlayer </td>
          <td>(</td>
          <td class="paramtype">TCHAR *&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>构造函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>文件路径 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2df79ab9ea5a52ae878b5cf8833d8e4f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CBasicPlayer::~CBasicPlayer </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>析构函数. </p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a80ed1111ee4f56ac4f77a4bc70a33cc1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_file_input.html">CFileInput</a> * CBasicPlayer::GetInput </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得Input文件流 </p>

</div>
</div>
<a class="anchor" id="a9cec3701ade8bab7f1ce20d2082a7207"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">jlong CBasicPlayer::GetLongFramePosition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取帧位置 </p>

</div>
</div>
<a class="anchor" id="afbda99b45acd28245ea5013b240e0aa2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CBasicPlayer::handleFinished </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>播放完成 </p>

</div>
</div>
<a class="anchor" id="a1e414657ca9072f8b1843032711c8c6c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CBasicPlayer::isVaild </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否可以获取播放源 </p>

</div>
</div>
<a class="anchor" id="a756ac686fdd160177834a607acfdbdd4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CBasicPlayer::Pause </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>暂停 </p>

</div>
</div>
<a class="anchor" id="a11a26def96e29eeca6383f98bbc4e4b0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CBasicPlayer::Play </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>恢复播放 </p>

</div>
</div>
<a class="anchor" id="a923965049cd93edc1f6a1e8949366046"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CBasicPlayer::Start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开始播放 </p>

</div>
</div>
<a class="anchor" id="a18edbe2cd19fcdf54f6a8693e5ca9933"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CBasicPlayer::Stop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>停止播放 </p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a class="anchor" id="a9eb7fecf4500b14f50ec4f5f11f3e7ae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">c_signals CBasicPlayer::__pad0__</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>频谱改变 </p>

</div>
</div>
<a class="anchor" id="a08a5907c92c6e20007494ac965e4fccb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_signal.html">Signal</a> CBasicPlayer::sigFinished</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>播放完成 </p>

</div>
</div>
</div><!-- contents -->
<HR style="FILTER: alpha(opacity=100,finishopacity=0,style=3)" width="100%" color=#000000 SIZE=3>
<table width="100%">
<tr>
        <td align="center">
                <a href="http://www.qtcn.org/bbs/read-htm-tid-55824.html"> <img style="height:40px;" src="CZPlayer.png"> </img> </a>
        </td>
</tr>
<tr>
        <td align="center">
                Copyright (C) 2012-2015 Highway-9 Studio.
        </td>
</tr>
